﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000F7 RID: 247
	internal class ReadNextExt16 : IReadNextDecoder
	{
		// Token: 0x06000384 RID: 900 RVA: 0x0000C94A File Offset: 0x0000AD4A
		private ReadNextExt16()
		{
		}

		// Token: 0x06000385 RID: 901 RVA: 0x0000C954 File Offset: 0x0000AD54
		public int Read(byte[] bytes, int offset)
		{
			int num = (int)((ushort)(bytes[offset + 1] << 8) | (ushort)bytes[offset + 2]);
			return num + 4;
		}

		// Token: 0x04000110 RID: 272
		internal static readonly IReadNextDecoder Instance = new ReadNextExt16();
	}
}
